<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class User extends DQ_Controller 
{
    public function __construct()
    {   
        parent::__construct();
        $this->load->Model('user_model');
    }  

    public function getMyActivity()
    {
        $this->load->Model('thread_model');
        $data = $this->thread_model->getMyThreads();

        return $this->packData($data);
    }

    public function setUserDetail()
    {
        $data = $this->user_model->setMemberDetail();

        return $this->packData($data);
    }

    public function getUserInfoSummary()
    {
        $data = $this->user_model->getUserInfoSummary();

        return $this->packData($data);
    }

    public function getUserInfoDetail()
    {
        $data = $this->user_model->getUserInfoDetail();

        return $this->packData($data);
    }

    public function changePassword()
    {
        $data = $this->user_model->changePassword();

        return $this->packData($data);
    }

    public function addReset()
    {
        $data = $this->user_model->addReset();

        return $this->packData($data);
    }

    public function resetPassword()
    {
        $data = $this->user_model->resetPassword();

        return $this->packData($data);
    }

    public function suggest()
    {
        $data = $this->user_model->suggest();

        return $this->packData($data);
    }
}
